package com.dmap.admin.service.backgroundv2;

import com.dmap.admin.controller.backgroundv2.param.AppParam;
import com.dmap.admin.controller.backgroundv2.param.AppSelectParam;
import com.dmap.admin.po.App;

import java.util.List;

/**
 * \* User: helei
 * \* Date: 27/05/18
 * \* Description:app相关接口
 * \
 */
public interface AppService {

    App insertApp(AppParam param);

    boolean updateApp(AppParam param);

    /**
     * 验证 ProjectId 或 projectName 是否已存在
     *
     * @param projectId   app编号
     * @param projectName app名称
     * @return
     */
    boolean validateProjectIdOrNameIsExist(String projectId, String projectName);

    App selectById(Long id);

    App selectByProjectId(String projectId);

    List<App> selectByCompanyId(Long companyId);

    int countByAppSelectParam(AppSelectParam param);

    List<App> selectByAppSelectParam(AppSelectParam param);

    List<String> selectAllProjectId();

}